<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>供货商维护</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;
            }
        input{
            height: 21px;
        }
    </style>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/04/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/04/sasdasd2.js"></script>
    <script type="text/javascript" src="../../js/04/supplier.js">
    </script><script type="text/javascript" src="../../js/04/supplierxiaoyan.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript">
        $(function () {
            serch_bean();
            gets();
        })
    </script>
</head>
<body>
<h1 align="center">供货商信息</h1>
<form id="asdasd">
    <div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
       
        <tr>
            <td>供货商名称：</td>
            <td><input id="surName" name="surName" type="text" value="" ></td>
            <td></td>
            <td>企业类别:</td>
            <td>
                <select id="surCategory" name="surCategory" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="1">生产企业</option>
                    <option value="2">经营企业</option>
                </select>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>邮政编码：</td>
            <td><input id="surPostalcode" name="surPostalcode"  type="text" value="" onblur="aaa()"></td>
            <td></td>
            <td>法人代表姓名：</td>
            <td><input id="surLegalPersonname" name="surLegalPersonname"  type="text" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>法人身份证：</td>
            <td><input id="surLegalpersonIdcard" name="surLegalpersonIdcard"  type="text" value=""onblur="bbb()"></td>
            <td></td>
            <td>Email：</td>
            <td><input id="surEmail" name="surEmail"  type="text" value="" onblur="ccc()"></td>
            <td></td>
        </tr>
        <tr>
            <td>是否有企业信用证：</td>
            <td>
                <select id="surEnterpriseLetter" name="surEnterpriseLetter" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="0">有企业信用证</option>
                    <option value="1">无企业信用证</option>
                </select>
            </td>
            <td></td>
        </tr>


    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="soso"><a href="javascript:void(0)" onclick="serch_bean1()">查询</a></button>
    </td>
    <br>
</div>
</form>
<iframe id="iframe" name="rfFrame" src="about:blank" style="display:none;"></iframe>
<div>
    <table>
        <tr>
            <td>供货商id</td>
            <td>供货商名称</td>
            <td>类别</td>
            <td>生产经营许可证</td>
            <td>许可证到期时间</td>
            <td>企业联系人</td>
            <td>企业联系电话</td>
            <td>经营范围</td>
            <td>注册地址</td>
            <td>联系地址</td>
            <td>邮政编码</td>
            <td>总资产</td>
            <td>企业传真</td>
            <td>法人姓名</td>
            <td>法人身份证</td>
            <td>企业注册资金</td>
            <td>电子邮箱</td>
            <td>网址</td>
            <td>企业代码证号</td>
            <td>企业代码有效期</td>
            <td>营业执照</td>
            <td>营业执照有效期</td>
            <td>是否企业信用证</td>
            <td>信用证号</td>
            <td>信用证号有效期</td>
            <td>固定资产</td>
            <td>公司简介</td>
            <td>上年度营销金额</td>
            <td>备注</td>
            <td>操作</td>
        </tr>
        <tbody id="checkOne">
        </tbody>
    </table>
</div>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
    <!-- 模态框（Modal） -->
<!--添加供货商-->
<form id="search_form" >
    <!-- 存放主键的id的input  -->
    <input type="hidden" value="" class="hhhhhhhid">
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        添加供货商
                    </h4>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp供货商名称</label>
                    <input type="text" class="form-control" name="surName" onblur="eee()" id="name1"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp类别</label>
                    <input type="text" class="form-control" name="surCategory"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp生产经营许可证</label>
                    <input type="text" class="form-control" name="surPlicense"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp许可证到期时间</label>
                    <input type="text" class="form-control" name="surLicenseExpirationTime"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp企业联系人</label>
                    <input type="text" class="form-control" name="surEnterpriseContact"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label>&nbsp&nbsp&nbsp企业联系电话</label>
                    <input type="text" class="form-control" name="sueBusinessContactNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp经营范围</label>
                    <input type="text" class="form-control" name="surBusinessScope"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp注册地址</label>
                    <input type="text" class="form-control" name="surRegisteredAddress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&联系地址</label>
                    <input type="text" class="form-control" name="surContactAddress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&邮政编码</label>
                    <input type="text" class="form-control" name="surPostalcode" id="code" onblur="code1()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&总资产</label>
                    <input type="text" class="form-control" name="surTotalAssets"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业传真</label>
                    <input type="text" class="form-control" name="surFax"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&法人姓名</label>
                    <input type="text" class="form-control" name="surLegalPersonname"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&法人身份证</label>
                    <input type="text" class="form-control" name="surLegalpersonIdcard" onblur="card1()" id="card"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业注册资金</label>
                    <input type="text" class="form-control" name="surEnterprise"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&电子邮箱</label>
                    <input type="text" class="form-control" name="surEmail" id="email1" onblur="email2()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&网址</label>
                    <input type="text" class="form-control" name="surUrl"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业代码证号</label>
                    <input type="text" class="form-control" name="surEnterpriseCodeNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业代码有效期</label>
                    <input type="text" class="form-control" name="surEnterpriseValidity"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&营业执照</label>
                    <input type="text" class="form-control" name="surBusinessLicense"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&营业执照有效期</label>
                    <input type="text" class="form-control" name="surBusinessLicenseValidity"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&是否企业信用证</label>
                    <input type="text" class="form-control" name="surEnterpriseLetter"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&信用证号</label>
                    <input type="text" class="form-control" name="surCreditNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&信用证号有效期</label>
                    <input type="text" class="form-control" name="surValidityOfCredit"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&固定资产</label>
                    <input type="text" class="form-control" name="surFixedAssets"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&公司简介</label>
                    <input type="text" class="form-control" name="surCompanyProfile"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&上年度营销金额</label>
                    <input type="text" class="form-control" name="surBusinessLy"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&备注</label>
                    <input type="text" class="form-control" name="surRemarks"
                           placeholder="请输入">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary" onclick="lasupplier()">
                        提交更改
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
</form><!-- /.modal -->
<script>
    $(function () { $('#myModal').modal('hide')});
</script>
<script>
    $(function () { $('#myModal').on('hide.bs.modal', function () {
        ;})
    });
</script>



<!-- 修改供货商-->
<form id="xiugai3">
    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="myModalLabe2">
                        修改供货商
                    </h4>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp供货商名称</label>
                    <input type="hidden" name="surId" id="id" class="hh hhhhhhid">
                    <input type="text" class="form-control" id="name" name="surName" onblur="yyy()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp类别</label>
                    <input type="text" class="form-control" id="category" name="surCategory"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp生产经营许可证</label>
                    <input type="text" class="form-control" id="plicense" name="surPlicense"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&许可证到期时间</label>
                    <input type="text" class="form-control" id="licenseExpirationTime" name="surLicenseExpirationTime"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业联系人</label>
                    <input type="text" class="form-control" id="enterpriseContact" name="surEnterpriseContact"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业联系电话</label>
                    <input type="text" class="form-control" id="businessContactNumber" name="sueBusinessContactNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp经营范围</label>
                    <input type="text" class="form-control" id="businessScope" name="surBusinessScope"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&注册地址</label>
                    <input type="text" class="form-control" id="registeredAddress" name="surRegisteredAddress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&联系地址</label>
                    <input type="text" class="form-control" id="contactAddress" name="surContactAddress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&邮政编码</label>
                    <input type="text" class="form-control" id="postalcode" name="surPostalcode" onblur="code2()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp总资产</label>
                    <input type="text" class="form-control" id="totalAssets" name="surTotalAssets"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp企业传真</label>
                    <input type="text" class="form-control"  id="fax" name="surFax"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp法人姓名</label>
                    <input type="text" class="form-control" id="legalPersonname" name="surLegalPersonname"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&法人身份证</label>
                    <input type="text" class="form-control" id="legalpersonIdcard" name="surLegalpersonIdcard" onblur="card2()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业注册资金</label>
                    <input type="text" class="form-control" id="enterprise" name="surEnterprise"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&电子邮箱</label>
                    <input type="text" class="form-control" id="email" name="surEmail" onblur="email3()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&网址</label>
                    <input type="text" class="form-control" id="url" name="surUrl"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业代码证号</label>
                    <input type="text" class="form-control" id="enterpriseCodeNumber" name="surEnterpriseCodeNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&企业代码有效期</label>
                    <input type="text" class="form-control" id="enterpriseValidity" name="surEnterpriseValidity"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&营业执照</label>
                    <input type="text" class="form-control" id="businessLicense" name="surBusinessLicense"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&营业执照有效期</label>
                    <input type="text" class="form-control" id="businessLicenseValidity" name="surBusinessLicenseValidity"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&是否企业信用证</label>
                    <input type="text" class="form-control" id="enterpriseLetter" name="surEnterpriseLetter"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&信用证号</label>
                    <input type="text" class="form-control" id="creditNumber" name="surCreditNumber"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&信用证号有效期</label>
                    <input type="text" class="form-control" id="validityOfCredit" name="surValidityOfCredit"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&固定资产</label>
                    <input type="text" class="form-control" id="fixedAssets" name="surFixedAssets"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&公司简介</label>
                    <input type="text" class="form-control" id="companyProfile" name="surCompanyProfile"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&上年度营销金额</label>
                    <input type="text" class="form-control" id="businessLy" name="surBusinessLy"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&备注</label>
                    <input type="text" class="form-control" id="remarks" name="surRemarks"
                           placeholder="请输入">
                </div>


                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary" onclick="xiugaisupplier()">
                        修改
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
</form>
<script>
    $(function () { $('#myModal').modal('hide')});
</script>
<script>
    $(function () { $('#myModal').on('hide.bs.modal', function () {
        alert('嘿，我听说您喜欢模态框...');})
    });
</script>
</body>
</html>
